home *** CD-ROM | disk | FTP | other *** search
/ Power Programmierung 2 / Power-Programmierung CD 2 (Tewi)(1994).iso / c / library / mslang / poetmf / inc / adrdlg.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-09-02  |  1.5 KB  |  53 lines

  1. // ******************************************************************
  2. //
  3. //  adrdlg.h : header file
  4. //           
  5. //    Most of this file is created by ClassWizard
  6. //
  7. //  (C) 1993 POET Software
  8. //
  9. // ******************************************************************
  10.  
  11. #include "..\resource.h"    //    resource IDs
  12.  
  13. #ifndef __ADRDLG_H_
  14. #define __ADRDLG_H__
  15.              
  16.  
  17. /////////////////////////////////////////////////////////////////////////////
  18. // CAddressDlg dialog
  19.  
  20. class CAddressDlg : public CDialog
  21. {
  22. protected:
  23.     virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
  24.  
  25.     // Generated message map functions
  26.     //{{AFX_MSG(CAddressDlg)
  27.         // NOTE: the ClassWizard will add member functions here
  28.     //}}AFX_MSG
  29.     DECLARE_MESSAGE_MAP()
  30. public:
  31.     CAddressDlg(CWnd* pParent = NULL);    // standard constructor
  32.     ~CAddressDlg () {}
  33.     
  34.     void SetAddress (char *street, int zip, char *city)
  35.         {m_strNewStreet = street; m_intNewZIP = zip; m_strNewCity = city;};
  36.     
  37.     char    *GetStreet () {return m_strNewStreet.GetBuffer (m_strNewStreet.GetLength ());}
  38.     int        GetZip () {return m_intNewZIP;}
  39.     char     *GetCity () {return m_strNewCity.GetBuffer (m_strNewCity.GetLength ());}
  40.     
  41. // Dialog Data
  42.     //{{AFX_DATA(CAddressDlg)
  43.     enum { IDD = IDR_ADRESS };
  44.     CString        m_strNewCity;    //    member variable of edit control City
  45.     CString        m_strNewStreet; //    member variable of edit control Street
  46.     int            m_intNewZIP;    //    member variable of edit control ZIP
  47.     //}}AFX_DATA
  48.  
  49. };
  50.  
  51. #endif // __ADRDLG_H__
  52.  
  53.